package conf

import (
	"gopkg.in/ini.v1"
	"log"
	"os"
)

/**
* @program: fileshare
*
* @description:初始化配置文件
*
* @author: Koco.Allien
*
* @create: 2020-04-05 16:08
**/
var Cfg *ini.Section

var cfgpath = "./conf/app.conf"

func Run() {
	cfg, err := ini.Load(cfgpath)
	if err != nil {
		log.Println("读取配置文件失败", err)
		os.Exit(1)
	}
	Cfg = cfg.Section("")
}
